<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户信息输出</title>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");
    String name = request.getParameter("name");
    String sex = request.getParameter("sex");
    String[] singerList = request.getParameterValues("singer");
%>
您的姓名:<%=name%><br>
您的性别:<%=sex%><br>
您喜欢的歌手:
<%
    for (String singer : singerList) {
%>
<%=singer + "&nbsp;"%>
<%}%><br>
<%
    out.print("hidden提交的值:这是隐藏信息");
%>
</body>
</html>